package com.yygo.service.impl;

import com.yygo.dao.FeedbackDao;
import com.yygo.model.Feedback;
import com.yygo.model.User;
import com.yygo.service.FeedbackManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by tiansha on 2015/10/4.
 */
@Service("feedbackManager")
public class FeedbackManagerImpl extends GenericManagerImpl<Feedback, Long> implements FeedbackManager {

    private FeedbackDao feedbackDao;

    @Autowired
    public FeedbackManagerImpl(FeedbackDao feedbackDao) {
        super(feedbackDao);
        this.feedbackDao = feedbackDao;
    }

    @Override
    public List<Feedback> getFeedbacks(User user) {
        return feedbackDao.getFeedbacks(user);
    }
}
